package com.cskaoyan.app.service;

import com.cskaoyan.app.bean.bo.adminbo.*;
import com.cskaoyan.app.bean.bo.adminbo.AdminRoleUpdateBo;
import com.cskaoyan.app.bean.common.BasePageInfo;
import com.cskaoyan.app.bean.po.MarketRole;
import com.cskaoyan.app.bean.vo.adminVo.AdminPermissions;
import com.cskaoyan.app.bean.vo.adminVo.AdminRoleOptVo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface AdminRoleService {
    PageInfo<MarketRole> listPageAdmins(BasePageInfo basePageInfo);

    PageInfo<AdminRoleOptVo> optionRoleList();

    List<MarketRole> createRoleData(AdminCreateBo createBo);

    void delRoleData(AdminDelBo adminDelBo);

    int update(AdminRoleUpdateBo adminBo);

    AdminPermissions selAllPermissions(String id);

    void updatePermissionData(String id, List<String> apis);
}
